<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>朝闻天下后台管理</title>

    <include file="Public/head"/>




    <link href="__PUBLIC__/assets_h/stylesheets/datepicker.css" media="all" rel="stylesheet" type="text/css"/>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.bootstrap.wizard.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/fullcalendar.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.dataTables.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.easy-pie-chart.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.isotope.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.fancybox.pack.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/select2.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.inputmask.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.validate.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-fileupload.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-datepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/bootstrap-timepicker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/daterange-picker.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/date.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/jquery.sparkline.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/assets_h/javascripts/main.js" type="text/javascript"></script>

    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

</head>
<body class="no-skin">
<include file="Public/header"/>

<div id="wrap" style="margin-bottom: 60px">
    <div class="container-fluid">
        <include file="Public/sidmenu"/>
        <div class="col-md-10 col-md-offset-2 " style="margin-bottom: 30px">
            <h2 style="color: #56abe4; margin-bottom: 0px;padding-bottom: 0px;">
                <p class="bg-white" style="font-weight:bold;margin-bottom: 10px;margin-top: 10px;font-size: 30px">添加用户</p>
            </h2>
            <hr>
        </div>

        <div class="col-md-12  col-md-offset-2" style="">



            <div class="row">
                <div class="col-md-1"></div>
                <div class="col-md-10">

                    <form method=post action="{:U('index.php/Admin/User/insert')}" enctype="multipart/form-data"class="form-horizontal">
                        <div class="form-group">
                            <label  class="col-md-4 control-label">姓名</label>
                            <div class="col-md-4" ><input style="margin-left: 2%" type="text" name="username" class="form-control" placeholder="姓名" required=""></div>

                        </div>

                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">密码</label>
                            <div class="col-md-4"><input style="margin-left: 2%" type="password" name="password" class="form-control" placeholder="密码" required=""></div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">性别</label>
                            <div class="col-md-4">
                                <label class="radio-inline">
                                    <input style="margin-left: 2%" type="radio" name="sex" value=0 checked>
                                    <span>男</span>
                                </label>
                                <label class="radio-inline">
                                    <input style="margin-left: 2%" type="radio" name="sex" value=1>
                                    <span>女</span>
                                </label>
                            </div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">生日</label>
                            <div class="col-md-4">
                                <input style="margin-left: 2%" type="date" name="birthday" class="form-control" placeholder="生日" >
                            </div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">QQ</label>
                            <div class="col-md-4" ><input style="margin-left: 2%" type="text" name="qq" class="form-control" placeholder="QQ" required=""></div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">联系电话</label>
                            <div class="col-md-4" ><input style="margin-left: 2%" type="text" name="tel" class="form-control" pattern="[0-9]{11}" placeholder="联系电话" required=""></div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">自我介绍</label>
                            <div class="col-md-4">
                                <textarea style="margin-left: 2%" type="text" name="intro" rows="3" class="form-control" placeholder="自我介绍" ></textarea>
                            </div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <label  class="col-md-4 control-label">头像</label>
                            <div class="row" style="margin-top: 2%">
                                <div class=" col-md-6 col-md-offset-4">
                                    <div class="fileupload fileupload-new" data-provides="fileupload" style=""><input type="hidden" value="" name="pic" >
                                        <div class="fileupload-new img-thumbnail"
                                             style="width: 110px; height: 110px;background-color:#5f5f5f">
                                            <img src="">
                                        </div>
                                        <div class="fileupload-preview fileupload-exists img-thumbnail"
                                             style="width: 110px; max-height: 110px;"></div>


                    <span class="btn btn-default btn-file">
                        <span class="fileupload-new">选择</span>
                        <span class="fileupload-exists">重选</span><input type="file" name="pic">
                        </span>
                          <span>
                        <a class="btn btn-default fileupload-exists" data-dismiss="fileupload"
                           href="#">撤销</a>
                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group" style="margin-top: 2%">
                            <div class="col-sm-offset-8 col-sm-10" style="margin-left: 45%">
                                <input type="submit" class="btn btn-success" value="提交" >

                            </div>
                        </div>

                    </form>




                </div>
                <div class="col-md-1"></div>
            </div>









        </div>


    </div>
</div>
</body>
</html>
